//
//  UILabel+Extension.swift
//  SinaWeibo25
//
//  Created by Yan on 16/3/14.
//  Copyright © 2016年 itcast. All rights reserved.
//

import UIKit

func labelWith(title: String,textColor:UIColor,fontSize:CGFloat,alignment: NSTextAlignment)-> UILabel {
    let label = UILabel()
    label.text = title
    label.textColor = textColor
    label.textAlignment = NSTextAlignment.Left
    label.font = UIFont.systemFontOfSize(fontSize)
    label.numberOfLines = 0
    label.sizeToFit()
    return label
}